.trigger {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0;
  overflow: visible;
  font-family: var(--main-font), sans-serif;
  font-size: var(--font-size-1);
  font-weight: 400;
  line-height: 1;
  color: var(--callout-warning-text);
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
  transition: opacity 0.2s ease;
}

.trigger:hover {
  opacity: 0.8;
}

.trigger:focus-visible {
  outline: 2px solid var(--callout-warning-text);
  outline-offset: 2px;
  border-radius: 2px;
}

.iconContainer {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  transition: transform 200ms ease-out;
}

.icon {
  color: var(--callout-warning-text);
  transition: transform 200ms ease-out;
}

.triggerText {
  color: var(--callout-warning-text);
}

.content {
  margin-top: 12px;
  overflow: hidden;
  background-color: var(--callout-warning-background);
  border-radius: var(--border-radius-base);
  animation: slideDown 200ms ease-out;
}

.content[data-state='closed'] {
  animation: slideUp 200ms ease-out;
}

.errorContent {
  padding: 12px;
}

.errorDetails {
  font-family: var(--code-font), monospace;
  font-size: var(--font-size-1);
  font-weight: 400;
  line-height: 1.5;
  color: var(--callout-warning-text);
  white-space: pre-wrap;
}

.errorDetails p {
  margin: 0;
}

.suggestionList {
  padding-left: 16.5px;
  margin: 0;
  list-style-type: disc;
}

.suggestionList li {
  margin-bottom: 0;
}

@keyframes slideDown {
  from {
    height: 0;
    opacity: 0;
  }
  to {
    /* stylelint-disable-next-line csstools/value-no-unknown-custom-properties */
    height: var(--radix-collapsible-content-height);
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    /* stylelint-disable-next-line csstools/value-no-unknown-custom-properties */
    height: var(--radix-collapsible-content-height);
    opacity: 1;
  }
  to {
    height: 0;
    opacity: 0;
  }
}
